package com.ruoyi.purchase.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.purchase.mapper.PurchaseReturnPayMapper;
import com.ruoyi.purchase.domain.PurchaseReturnPay;
import com.ruoyi.purchase.service.IPurchaseReturnPayService;

/**
 * 入库付款信息Service业务层处理
 * 
 * @author wonderland
 * @date 2023-07-18
 */
@Service
public class PurchaseReturnPayServiceImpl implements IPurchaseReturnPayService 
{
    @Autowired
    private PurchaseReturnPayMapper purchaseReturnPayMapper;

    /**
     * 查询入库付款信息
     * 
     * @param id 入库付款信息主键
     * @return 入库付款信息
     */
    @Override
    public PurchaseReturnPay selectPurchaseReturnPayById(Long id)
    {
        return purchaseReturnPayMapper.selectPurchaseReturnPayById(id);
    }

    /**
     * 查询入库付款信息列表
     * 
     * @param purchaseReturnPay 入库付款信息
     * @return 入库付款信息
     */
    @Override
    public List<PurchaseReturnPay> selectPurchaseReturnPayList(PurchaseReturnPay purchaseReturnPay)
    {
        return purchaseReturnPayMapper.selectPurchaseReturnPayList(purchaseReturnPay);
    }

    /**
     * 新增入库付款信息
     * 
     * @param purchaseReturnPay 入库付款信息
     * @return 结果
     */
    @Override
    public int insertPurchaseReturnPay(PurchaseReturnPay purchaseReturnPay)
    {
        return purchaseReturnPayMapper.insertPurchaseReturnPay(purchaseReturnPay);
    }

    /**
     * 修改入库付款信息
     * 
     * @param purchaseReturnPay 入库付款信息
     * @return 结果
     */
    @Override
    public int updatePurchaseReturnPay(PurchaseReturnPay purchaseReturnPay)
    {
        return purchaseReturnPayMapper.updatePurchaseReturnPay(purchaseReturnPay);
    }

    /**
     * 批量删除入库付款信息
     * 
     * @param ids 需要删除的入库付款信息主键
     * @return 结果
     */
    @Override
    public int deletePurchaseReturnPayByIds(Long[] ids)
    {
        return purchaseReturnPayMapper.deletePurchaseReturnPayByIds(ids);
    }

    /**
     * 删除入库付款信息信息
     * 
     * @param id 入库付款信息主键
     * @return 结果
     */
    @Override
    public int deletePurchaseReturnPayById(Long id)
    {
        return purchaseReturnPayMapper.deletePurchaseReturnPayById(id);
    }
}
